Welcome![Sign In][Sign Up]
Location:
Search - simulate file system in c

Search list

[OS Develop模拟二级文件系统

Description: 用C语言编写程序,模拟二级目录的文件系统 建立一个模拟文件系统,能实现建立、打开、删除、关闭、复制、读、写、查询等功能-use C language write programmes,simulate two-level directory file systems,create a simulated file systems in order to realize the functions such as create,open,delete,close,copy,read,write,find.
Platform: | Size: 178176 | Author: 唐瑜 | Hits:

[OS programcipanguanli

Description: 编写C语言程序,模拟UNIX磁盘空间管理中使用的分组链接法。 1.定义一个记录磁盘块号的堆栈S—free[10],以及记录栈中现有磁盘块数的变量S—nfree。 2.定义一个由40个元素构成的结构数组block[40]用作磁盘块存放。 struct size { int blocl[10] } struct blocd { struct size a[10] //用于在空闲磁盘块号链中存放磁盘块号 }block[40] 3. 假设系统中文件的最大容量为100个磁盘块,且最多只有5个文件,定义一个由5个元素构成的结构数组file[5]用于记录各个文件占用的磁盘块,。 struct File { int fileblocd[100] //用于记录分别分配给文件的磁盘块号 }file[5] -Procedures for the preparation of C language to simulate the UNIX disk space used in the management of sub-link method. 1. The definition of a record number of disk blocks stack S-free [10], as well as the record of the existing disk block stack variable number of S-nfree. 2. The definition of a 40 element array structure consisting of block [40] for block storage disk. struct size (int blocl [10] ) struct blocd (struct size a [10] // used to free disk blocks in its store chain in its disk block) block [40] 3. the assumption that the system' s maximum capacity of paper disk blocks for the 100, and a maximum of only five documents, the definition of five elements of a structure consisting of an array of file [5] used to record all the disk blocks occupied by files,. struct File (int fileblocd [100] // used to record files were assigned to the disk block number) file [5]
Platform: | Size: 8192 | Author: 陈媛 | Hits:

[Linux-Unixcfz

Description: 【设计题目】Linux二级文件系统设计【开发语言及实现平台或实验环境】C++/VC++【设计要求】理解Linux的文件系统的组织;掌握常用的数据结构;系统采用两级目录,其中第一级对应于用户账号,第二级对应于用户帐号下的文件 使用文件来模拟外存,进行数据结构设计和操作算法的设计,实现一个文件系统并实现基本的文件操作(为了简便文件系统,不考虑文件共享,文件系统安全以及管道文件与设备文件等特殊内容)。要求:1、对程序的每一部分要有详细的设计分析说明 2、程序执行的每个步骤要有具体的提示内容或输出3、源代码格式规范,注释不少于三分之一4、设计合适的测试用例,对得到的运行结果要有分析,5、设计中遇到的问题,设计的心得体会6、提交完整程序代码、课程设计报告及相关文档可实现下列命令操作:login dir create delete open close read write cd exit help cls attrib-【Title】 design Linux 2 File System Design and Implementation 【development language platforms or experimental environment】 C++/VC++ 【】 to understand the design requirements Linux file system organization grasp common data structure system uses two directories, which corresponds to the first level user account, the first 2 corresponds to the files under the user account use the file to simulate the external memory, data structure design and operation of the algorithm designed to achieve a File systems, and basic file operations (for simple file system, regardless of file sharing, file system security and pipeline documents Documents and equipment and other special content). Requirements: 1, each part of the program design and analysis must be detailed in note 2, for each program execution Steps have to be specific tips content or output 3, the source code format specification, not less than one-third of the Notes 4, design appropriate test cases, The results have been oper
Platform: | Size: 5120 | Author: 王跃 | Hits:

[OS Developas

Description: 编写C语言程序,模拟UNIX磁盘空间管理中使用的分组链接法。 1.定义一个记录磁盘块号的堆栈S—free[10],以及记录栈中现有磁盘块数的变量S—nfree。 2.定义一个由40个元素构成的结构数组block[40]用作磁盘块存放。 struct size { int blocl[10] } struct blocd { struct size a[10] //用于在空闲磁盘块号链中存放磁盘块号 }block[40] 3. 假设系统中文件的最大容量为100个磁盘块,且最多只有5个文件,定义一个由5个元素构成的结构数组file[5]用于记录各个文件占用的磁盘块,。 struct File { int fileblocd[100] //用于记录分别分配给文件的磁盘块号 }file[5] 4. 编写函数init( )完成空闲磁盘块号堆栈、空闲磁盘块号队列及记录文件占用磁盘块状态的file结构数组。 5. 编写函数alloc(fileno,blockd),完成磁盘块的分配操作。其中的参数fileno为文件序号,用于指定需要分配的文件。 6. 编写函数free(fileno),完成文件占用磁盘块的释放操作。其中的参数fileno为文件序号,用于指定需要释放磁盘块的文件。 7. 编写main( )函数完成下列操作: 调用init( )函数完成初始设置。 从终端输入命令,控制磁盘块的分配与回收操作。 -Write C language programs to simulate UNIX disk space management group used the link method. 1. The definition of a record number of disk blocks stack S-free [10], and the record number of disk blocks stack variables in the existing S-nfree. 2. The definition of a structure consisting of 40 elements in the array block [40] for disk blocks for storage. struct size {Int blocl [10] } struct blocd {Struct size a [10] // Used in the chain of free disk block number stored in the disk block number } Block [40] 3. Assuming that the system files in the maximum capacity of 100 disk blocks, and only a maximum of 5 files, defined by the five elements of a Array of structures file [5] used to record the disk blocks occupied by each file. struct File {Int fileblocd [100] // Used to record files were assigned to the disk block number } File [5] 4. Write a function init () to complete the stack of free disk block number, block number of free disk queue an
Platform: | Size: 2048 | Author: fdsf | Hits:

[Linux-Unixsmall-unix

Description: 用C语言模拟小型类UNIX文件系统, 文件系统被分成三个部分,依次为:位视图,I节点区和数据区。数据区被分成1024块,每块有1024个字节。用一个文件模拟外存,在程序中用数组分别模拟内存中的I节点,位图,文件系统。在每一次的操作中如果相应元素有变动,则对应在文件中更新输出相应数据。-Small classes in C language simulation UNIX file system, file system is divided into three parts, as follows: bit view, I node area and data area. Data area is divided into 1024 blocks, each block is 1024 bytes. Simulate external memory with a file, were simulated in the program memory array using the I node, bitmap, the file system. In every operation the corresponding element if there are any changes, then the corresponding output in the file, update the corresponding data.
Platform: | Size: 6144 | Author: 曲博 | Hits:

[File Operatemyfs

Description: C++写的一个小型的FAT文件系统,磁盘用一个大文件来模拟。基于此文件系统实现了类DOS的shell界面,提供了一些基本功能,如cd,dir,mkdir,edit。-A small FAT file system in C++, disk with a large file to simulate. Class DOS-shell interface, based on this file system provides some basic functions, such as the cd, dir, mkdir, edit.
Platform: | Size: 1337344 | Author: Steven | Hits:

[OS programOSLab-

Description: 操作系统课程设计。visual studio 2010,2008上的模拟UNIX文件系统的c++源码,附加实验报告和readmefile-1.Simulate a Unix file system on your Windows Platform 2.Understand the file system on Unix system, and the usage of i-nodes 3.Implement the function of sub-directory 4.The task needs to be completed using C++ or C 5.Allocate 16MB space in memory as the storage for your file system, the space is divided as blocks with block size 1KB 6.The i-node should support up to 10 direct block addresses, and should support at least one indirect block address
Platform: | Size: 549888 | Author: limengxi | Hits:

[Otheros_file

Description: 操作系统课设作业。在磁盘空间模拟一个linux文件系统,并提供基本的文件操作命令(如mk, cp, mkdir, rmdir, cd, ls, cat, chmod, chown, chgrp, chnam等)。文件系统的实现采用混合索引式文件结构,包括使用空闲节点号栈管理空闲节点和成组链接管理空闲盘块。(Simulate a Linux file system in disk space and provide basic file operation commands (such as MK, CP, MKDIR, rmdir, CD, LS, cat, Chmod, chown, chgrp, chnam, etc.). The implementation of file system is based on hybrid index file structure, including using idle node stack to manage idle nodes and group links to manage idle disk blocks.)
Platform: | Size: 375808 | Author: Greenyy | Hits:

CodeBus www.codebus.net